<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * Class Banner
 * 
 * @property int $id
 * @property string|null $title
 * @property string|null $content
 * @property string|null $img_url
 * @property string|null $url
 * @property int $jump_type
 * @property float $weight
 * @property string $type
 * @property Carbon|null $create_time
 * @property Carbon|null $update_time
 *
 * @package App\Models
 */
class Banner extends Model
{
	protected $table = 'banner';

	protected $casts = [
		'jump_type' => 'int',
		'weight' => 'float'
	];

	protected $fillable = [
		'title',
		'content',
		'img_url',
		'url',
		'jump_type',
		'weight',
		'type'
	];
}
